//
//  VipBarView.swift
//  Chatup
//
//  Created by op on 2023/10/17.
//

import SwiftUI

struct VipBarView: View {
    var body: some View {
        ZStack{
            Image("bg_vip_1")
                .aspectRatio(contentMode: .fit).padding(.horizontal, -12)
            Image("bg_vip_2")
                .aspectRatio(contentMode: .fit).padding(.horizontal, -12)
            HStack{
                Spacer().frame(width: 24)
                VStack(alignment: .leading){
                    Text(String.i18nText("assistant_banner_free"))
                    .font(
                        Font.system(size: 18, weight: .bold)
                    )
                    .foregroundColor(.white)
                    Spacer().frame(height: 8)
                    HStack{
                        Text(String.i18nText("assistant_banner_no_limit"))
                          .font(Font.system(size: 14))
                          .foregroundColor(.white.opacity(0.55))
                        Spacer().frame(width: 2)
                        Image("bg_vip_4")
                    }
                }
                Spacer()
                Image("bg_vip_3")
    //                .aspectRatio(contentMode: .fit)
                    .frame(alignment: .trailing)
                Spacer().frame(width: 24)
            }
            
            
        }
    }
}

#Preview {
    VipBarView()
}
